package day2.Test3;

public class Test {
    public static void main(String[] args) {
        Monkey monkey = new Monkey("棕色", 2, "悟空");
        monkey.eat();
        monkey.sleep();
        monkey.jump();
        monkey.cycle();
        System.out.println("=============================================");

        Animal2 a  =new Monkey("棕色", 3, "悟空");
        a.eat();
        a.sleep();

        ( (Monkey) a).cycle();
        ( (Monkey) a).jump();
        System.out.println("============================================");

        ICycleAble cycleAble = new Monkey();
        cycleAble.cycle();

    }
}
